﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Security.Cryptography;


namespace LIMS.Common
{
    public class EncryptHelper
    {
      //  private static readonly String En_DecriptCode = "idistyl";

        /// <summary>
        /// 加密字符串
        /// </summary>
        /// <param name="passWord">待加密的原始字符串</param>
        /// <param name="clearText">生成的密文</param>
        /// <returns>生成的密文</returns>
        public static String Encript(String passWord, String clearText)
        {
            String cipher = string.Empty;
            Char[] Key = new Char[8];
            if (passWord.Length > 8)
            {
                passWord = passWord.Remove(8);
            }

            return cipher;
        }

        /// <summary>
        /// 解密字符串
        /// </summary>
        /// <param name="passWord">待解密的字符串</param>
        /// <param name="clearText">已解密的明文字符串</param>
        /// <returns>已解密的明文</returns>
        public static String Decript(String passWord, String clearText)
        {
            String cipher = string.Empty;

            return cipher;
        }
    }
}
